<?php
/**
 * ExtField class file
 *
 * @author TrueSoftware B.V. (The Netherlands)
 * @link http://www.ext4yii.com
 * @copyright Copyright 2007-2010 TrueSoftware B.V. all rights reserved.
 * @license http://www.ext4yii.com/license/
 *          EVALUATION VERSION - NOT FOR COMMERCIAL USE OR DISTRIBUTION.
 * @version 0.7.2
 */

class ExtField extends ExtFormFieldBase
{
    /**
     * Gets the value of ExtJS cls property
     * @return String 
     */
    public function getCls()
    {
    	return $this->getConfig("cls");
    }

    /**
     * Sets the value of ExtJS cls property
     * @param String $value 
     */
    public function setCls($value)
    {
    	$this->setConfig("cls",$value);
    }

    /**
     * Gets the value of ExtJS disabled property
     * @return Boolean 
     */
    public function getDisabled()
    {
    	return $this->getConfig("disabled");
    }

    /**
     * Sets the value of ExtJS disabled property
     * @param Boolean $value 
     */
    public function setDisabled($value)
    {
    	$this->setConfig("disabled",$value);
    }

    /**
     * Gets the value of ExtJS fieldClass property
     * @return String 
     */
    public function getFieldClass()
    {
    	return $this->getConfig("fieldclass");
    }

    /**
     * Sets the value of ExtJS fieldClass property
     * @param String $value 
     */
    public function setFieldClass($value)
    {
    	$this->setConfig("fieldclass",$value);
    }

    /**
     * Gets the value of ExtJS focusClass property
     * @return String 
     */
    public function getFocusClass()
    {
    	return $this->getConfig("focusclass");
    }

    /**
     * Sets the value of ExtJS focusClass property
     * @param String $value 
     */
    public function setFocusClass($value)
    {
    	$this->setConfig("focusclass",$value);
    }

    /**
     * Gets the value of ExtJS inputType property
     * @return String 
     */
    public function getInputType()
    {
    	return $this->getConfig("inputtype");
    }

    /**
     * Sets the value of ExtJS inputType property
     * @param String $value 
     */
    public function setInputType($value)
    {
    	$this->setConfig("inputtype",$value);
    }

    /**
     * Gets the value of ExtJS invalidClass property
     * @return String 
     */
    public function getInvalidClass()
    {
    	return $this->getConfig("invalidclass");
    }

    /**
     * Sets the value of ExtJS invalidClass property
     * @param String $value 
     */
    public function setInvalidClass($value)
    {
    	$this->setConfig("invalidclass",$value);
    }

    /**
     * Gets the value of ExtJS invalidText property
     * @return String 
     */
    public function getInvalidText()
    {
    	return $this->getConfig("invalidtext");
    }

    /**
     * Sets the value of ExtJS invalidText property
     * @param String $value 
     */
    public function setInvalidText($value)
    {
    	$this->setConfig("invalidtext",$value);
    }

    /**
     * Gets the value of ExtJS msgFx property
     * @return String 
     */
    public function getMsgFx()
    {
    	return $this->getConfig("msgfx");
    }

    /**
     * Sets the value of ExtJS msgFx property
     * @param String $value 
     */
    public function setMsgFx($value)
    {
    	$this->setConfig("msgfx",$value);
    }

    /**
     * Gets the value of ExtJS msgTarget property
     * @return String 
     */
    public function getMsgTarget()
    {
    	return $this->getConfig("msgtarget");
    }

    /**
     * Sets the value of ExtJS msgTarget property
     * @param String $value 
     */
    public function setMsgTarget($value)
    {
    	$this->setConfig("msgtarget",$value);
    }

    /**
     * Gets the value of ExtJS name property
     * @return String 
     */
    public function getName()
    {
    	return $this->getConfig("name");
    }

    /**
     * Sets the value of ExtJS name property
     * @param String $value 
     */
    public function setName($value)
    {
    	$this->setConfig("name",$value);
    }

    /**
     * Gets the value of ExtJS preventMark property
     * @return Boolean 
     */
    public function getPreventMark()
    {
    	return $this->getConfig("preventmark");
    }

    /**
     * Sets the value of ExtJS preventMark property
     * @param Boolean $value 
     */
    public function setPreventMark($value)
    {
    	$this->setConfig("preventmark",$value);
    }

    /**
     * Gets the value of ExtJS readOnly property
     * @return Boolean 
     */
    public function getReadOnly()
    {
    	return $this->getConfig("readonly");
    }

    /**
     * Sets the value of ExtJS readOnly property
     * @param Boolean $value 
     */
    public function setReadOnly($value)
    {
    	$this->setConfig("readonly",$value);
    }

    /**
     * Gets the value of ExtJS submitValue property
     * @return Boolean 
     */
    public function getSubmitValue()
    {
    	return $this->getConfig("submitvalue");
    }

    /**
     * Sets the value of ExtJS submitValue property
     * @param Boolean $value 
     */
    public function setSubmitValue($value)
    {
    	$this->setConfig("submitvalue",$value);
    }

    /**
     * Gets the value of ExtJS tabIndex property
     * @return Number 
     */
    public function getTabIndex()
    {
    	return $this->getConfig("tabindex");
    }

    /**
     * Sets the value of ExtJS tabIndex property
     * @param Number $value 
     */
    public function setTabIndex($value)
    {
    	$this->setConfig("tabindex",$value);
    }

    /**
     * Gets the value of ExtJS validateOnBlur property
     * @return Boolean 
     */
    public function getValidateOnBlur()
    {
    	return $this->getConfig("validateonblur");
    }

    /**
     * Sets the value of ExtJS validateOnBlur property
     * @param Boolean $value 
     */
    public function setValidateOnBlur($value)
    {
    	$this->setConfig("validateonblur",$value);
    }

    /**
     * Gets the value of ExtJS validationDelay property
     * @return Number 
     */
    public function getValidationDelay()
    {
    	return $this->getConfig("validationdelay");
    }

    /**
     * Sets the value of ExtJS validationDelay property
     * @param Number $value 
     */
    public function setValidationDelay($value)
    {
    	$this->setConfig("validationdelay",$value);
    }

    /**
     * Gets the value of ExtJS validationEvent property
     * @return String/Boolean 
     */
    public function getValidationEvent()
    {
    	return $this->getConfig("validationevent");
    }

    /**
     * Sets the value of ExtJS validationEvent property
     * @param String/Boolean $value 
     */
    public function setValidationEvent($value)
    {
    	$this->setConfig("validationevent",$value);
    }

    /**
     * Gets the value of ExtJS value property
     * @return Mixed 
     */
    public function getValue()
    {
    	return $this->getConfig("value");
    }

    /**
     * Sets the value of ExtJS value property
     * @param Mixed $value 
     */
    public function setValue($value)
    {
    	$this->setConfig("value",$value);
    }

    
    public function __construct()
    {
        parent::__construct();
        $this->configmap = array_merge($this->configmap,array(
            'fieldclass' => 'fieldClass',
            'focusclass' => 'focusClass',
            'inputtype' => 'inputType',
            'invalidclass' => 'invalidClass',
            'invalidtext' => 'invalidText',
            'msgfx' => 'msgFx',
            'msgtarget' => 'msgTarget',
            'preventmark' => 'preventMark',
            'readonly' => 'readOnly',
            'submitvalue' => 'submitValue',
            'tabindex' => 'tabIndex',
            'validateonblur' => 'validateOnBlur',
            'validationdelay' => 'validationDelay',
            'validationevent' => 'validationEvent'
        ));

        $this->eventtable = array_merge($this->eventtable,array(
            'blur' => array('sender'),
            'change' => array('sender','newValue','oldValue'),
            'focus' => array('sender'),
            'invalid' => array('sender','msg'),
            'specialkey' => array('sender','e'),
            'valid' => array('sender')
        ));


        $this->setXType('field');
        $this->setXClass('Ext.form.Field');
    }    
}
?>